<table class="table1" style="margin: 10px; width: 500px">
	<caption>
  <?=$v[0]['kename'] ?>
  </caption>
	<thead>
		<tr>
			<th>id</th>
			<th>科室名称</th>
			<th>所属</th>
		</tr>
	</thead>
	<tfoot>
		<tr>
			<th colspan="3"><a
				href="<?=$this->url(array('action'=>'msg','kid'=>$v[0]['kid'])) ?>">添加</a>
			</th>
		</tr>
	</tfoot>
	<tbody>
    <? foreach ($this->d as $vv) :?>
    <tr>
			<td style="width: 20px"><?=$vv["id"] ?></td>
			<td><a
				href="<?=$this->url(array('action'=>'index','id'=>$vv['id'],'username'=>$vv['username'],'kid'=>$v[0]['kid'])) ?>">
        <?=$vv["kename"] ?>
        </a></td><?$lei=array('1'=>'行政科室','2'=>'医疗科室','3'=>'后勤科室') ?>
      <td><?=$lei[$vv["leibie_id"]] ?>
      </td>
		</tr>
    <? endforeach; ?>
  </tbody>
</table>
